home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Laboratorio Interattivo Deagostini
/
laboratorio interattivo deagostini.bin
/
swf
/
178.swf
/
scripts
/
frame_1
/
PlaceObject2_53_10
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2003-01-06
|
2KB
|
53 lines
onClipEvent(enterFrame){
function verifica()
{
punteggio = 0;
i = 0;
lRisultati = new Array();
i == 0;
while(i < lista.length)
{
nomeClip = lista[i][0];
var corrette = 0;
var parole = new Array();
var c = 0;
c == 0;
while(c < lista[i][1])
{
var percorso = "_parent.mask.esercizio." + nomeClip + ".spazio" + (c + 1);
if(eval(percorso).testo.toLowerCase() == lista[i][3][c].toLowerCase())
{
corrette += 1;
}
parole.push(eval(percorso).testo.toLowerCase());
c++;
}
if(corrette == lista[i][1])
{
punteggio += lista[i][2];
_parent.mask.esercizio[nomeClip].responso.gotoAndStop("Giusto");
var GiustoSbagliato = 1;
}
else
{
_parent.mask.esercizio[nomeClip].responso.gotoAndStop("Sbagliato");
var GiustoSbagliato = 0;
}
lRisultati.push("[" + (i + 1) + "," + "[" + parole + "]" + "," + "[" + lista[i][3] + "]" + "," + GiustoSbagliato + "]");
i += 1;
}
_root.risultato = punteggio / TotPunteggio * 10;
getURL("Finito:[" + lRisultati + "]","");
_root.TempoScaduto = 0;
_root.AvviaVerifica = 0;
}
if(_root.TempoScaduto == "1")
{
Verifica();
}
if(_root.AvviaVerifica == "1")
{
Verifica();
}
}